﻿using KingsSharp.Core.Data;
using System;

namespace CRM.Admin.Contracts.Dto.Logs
{
    public class BusinessLogDto : IAddDto, IEditDto<Guid>
    {
        public BusinessLogDto()
        {
            this.Id = Guid.NewGuid();
        }
        public Guid Id { get; set; }
        /// <summary>
        /// 业务模块类别
        /// </summary>
        public string Type { get; set; }

        /// <summary>
        /// 操作动作
        /// </summary>
        public string Action { get; set; }

        /// <summary>
        /// 操作内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 业务主键
        /// </summary>
        public string BusinessId { get; set; }

        /// <summary>
        /// Ip地址
        /// </summary>
        public string Ip { get; set; }

        /// <summary>
        /// 浏览器
        /// </summary>
        public string Brower { get; set; }

        /// <summary>
        /// 操作系统
        /// </summary>
        public string SystemName { get; set; }

        /// <summary>
        /// 对应用户外键
        /// </summary>
        public Guid UserId { get; set; }

        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 操作日期
        /// </summary>
        public string CreatedTime { get; set; }

        /// <summary>
        /// 登陆账号
        /// </summary>
        public string LoginCode { get; set; }

        /// <summary>
        /// 地区
        /// </summary>
        public string Area { get; set; }
    }
}
